home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.uio.no!solace!news
- From: cmh@lls.se (Magnus Holmgren)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Bored? Tell me why my code crashes! :)
- Date: 23 Mar 1996 13:23:21
- Organization: Programmers' Point
- Message-ID: <4j1fdn$iev@fizban.solace.mh.se>
- References: <4it591$aov@vixen.cso.uiuc.edu>
- NNTP-Posting-Host: gawain.lls.se
- Mime-Version: 1.2
- Content-Type: TEXT/PLAIN; charset=ISO-8859-1
- Content-Transfer-Encoding: 8BIT
- X-FTN-To: Unknown
- X-Newsreader: Spot 1.3a #26/NetGate 1.2
-
- In a message of 22 Mar 96, Unknown wrote to :
-
- U> It works, sometimes, but just crashes others. As nearly as I can
- U> tell, it's the pettern matching stuff .... everything else seems to
- U> work if I remove these bits. If I pass no wildcards, in fact, the
- U> thing works fine, although the output is rather dull.
-
- You muse make sure that your pattern destination buffer is twice as large
- as your input string, plus 2 bytes. As I don't know what kind of inputs you
- are using, this could be an explanation...
-
- Thus, always make the ParsePatternNoCase destination strlen( pattern )*2+2
- bytes large.
-
- --
- Magnus Holmgren - Amiga programmer and enthusiast
-
-
-